﻿/*   
    Copyright (C) 2009 Galaktika Corporation ZAO

    This file is a part of Galaktika.BusinessMonitor
 
    Galaktika.BusinessMonitor is a free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
      
    You should have received a copy of the GNU General Public License
    along with Galaktika.BusinessMonitor.  If not, see <http://www.gnu.org/licenses/>.
  
    If GPL v.3 is not suitable for your products or company,
    Galaktika Corp provides Galaktika.BusinessMonitor under a flexible commercial license
    designed to meet your specific usage and distribution requirements.
    If you have already obtained a commercial license from Galaktika Corp,
    you can use this file under those license terms.
*/

namespace Galaktika.BI.Silverlight.Services.MetaService
{
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(Namespace = "http://www.galaktika.by/bi/3.0/", ConfigurationName = "MetaService.MetaServiceSoap")]
    public interface MetaServiceSoap
    {

        [System.ServiceModel.OperationContractAttribute(AsyncPattern = true, Action = "http://www.galaktika.by/bi/3.0/GetAppItems", ReplyAction = "*")]
        System.IAsyncResult BeginGetAppItems(Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsRequest request, System.AsyncCallback callback, object asyncState);

        Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsResponse EndGetAppItems(System.IAsyncResult result);

        [System.ServiceModel.OperationContractAttribute(AsyncPattern = true, Action = "http://www.galaktika.by/bi/3.0/SetAppItem", ReplyAction = "*")]
        System.IAsyncResult BeginSetAppItem(Galaktika.BI.Silverlight.Services.MetaService.SetAppItemRequest request, System.AsyncCallback callback, object asyncState);

        Galaktika.BI.Silverlight.Services.MetaService.SetAppItemResponse EndSetAppItem(System.IAsyncResult result);
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(IsWrapped = false)]
    public partial class GetAppItemsRequest
    {

        [System.ServiceModel.MessageBodyMemberAttribute(Name = "GetAppItems", Namespace = "http://www.galaktika.by/bi/3.0/", Order = 0)]
        public Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsRequestBody Body;

        public GetAppItemsRequest()
        {
        }

        public GetAppItemsRequest(Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsRequestBody Body)
        {
            this.Body = Body;
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace = "http://www.galaktika.by/bi/3.0/")]
    public partial class GetAppItemsRequestBody
    {

        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue = false, Order = 0)]
        public System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> cachedItems;

        public GetAppItemsRequestBody()
        {
        }

        public GetAppItemsRequestBody(System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> cachedItems)
        {
            this.cachedItems = cachedItems;
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(IsWrapped = false)]
    public partial class GetAppItemsResponse
    {

        [System.ServiceModel.MessageBodyMemberAttribute(Name = "GetAppItemsResponse", Namespace = "http://www.galaktika.by/bi/3.0/", Order = 0)]
        public Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsResponseBody Body;

        public GetAppItemsResponse()
        {
        }

        public GetAppItemsResponse(Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsResponseBody Body)
        {
            this.Body = Body;
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace = "http://www.galaktika.by/bi/3.0/")]
    public partial class GetAppItemsResponseBody
    {

        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue = false, Order = 0)]
        public System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> GetAppItemsResult;

        public GetAppItemsResponseBody()
        {
        }

        public GetAppItemsResponseBody(System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> GetAppItemsResult)
        {
            this.GetAppItemsResult = GetAppItemsResult;
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(IsWrapped = false)]
    public partial class SetAppItemRequest
    {

        [System.ServiceModel.MessageBodyMemberAttribute(Name = "SetAppItem", Namespace = "http://www.galaktika.by/bi/3.0/", Order = 0)]
        public Galaktika.BI.Silverlight.Services.MetaService.SetAppItemRequestBody Body;

        public SetAppItemRequest()
        {
        }

        public SetAppItemRequest(Galaktika.BI.Silverlight.Services.MetaService.SetAppItemRequestBody Body)
        {
            this.Body = Body;
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace = "http://www.galaktika.by/bi/3.0/")]
    public partial class SetAppItemRequestBody
    {

        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue = false, Order = 0)]
        public System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> items;

        public SetAppItemRequestBody()
        {
        }

        public SetAppItemRequestBody(System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> items)
        {
            this.items = items;
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(IsWrapped = false)]
    public partial class SetAppItemResponse
    {

        [System.ServiceModel.MessageBodyMemberAttribute(Name = "SetAppItemResponse", Namespace = "http://www.galaktika.by/bi/3.0/", Order = 0)]
        public Galaktika.BI.Silverlight.Services.MetaService.SetAppItemResponseBody Body;

        public SetAppItemResponse()
        {
        }

        public SetAppItemResponse(Galaktika.BI.Silverlight.Services.MetaService.SetAppItemResponseBody Body)
        {
            this.Body = Body;
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute()]
    public partial class SetAppItemResponseBody
    {

        public SetAppItemResponseBody()
        {
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public interface MetaServiceSoapChannel : Galaktika.BI.Silverlight.Services.MetaService.MetaServiceSoap, System.ServiceModel.IClientChannel
    {
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public partial class GetAppItemsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        public GetAppItemsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        public System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> Result
        {
            get
            {
                base.RaiseExceptionIfNecessary();
                return ((System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor>)(this.results[0]));
            }
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public partial class MetaServiceSoapClient : System.ServiceModel.ClientBase<Galaktika.BI.Silverlight.Services.MetaService.MetaServiceSoap>, Galaktika.BI.Silverlight.Services.MetaService.MetaServiceSoap
    {

        private BeginOperationDelegate onBeginGetAppItemsDelegate;

        private EndOperationDelegate onEndGetAppItemsDelegate;

        private System.Threading.SendOrPostCallback onGetAppItemsCompletedDelegate;

        private BeginOperationDelegate onBeginSetAppItemDelegate;

        private EndOperationDelegate onEndSetAppItemDelegate;

        private System.Threading.SendOrPostCallback onSetAppItemCompletedDelegate;

        private BeginOperationDelegate onBeginOpenDelegate;

        private EndOperationDelegate onEndOpenDelegate;

        private System.Threading.SendOrPostCallback onOpenCompletedDelegate;

        private BeginOperationDelegate onBeginCloseDelegate;

        private EndOperationDelegate onEndCloseDelegate;

        private System.Threading.SendOrPostCallback onCloseCompletedDelegate;

        public MetaServiceSoapClient()
        {
        }

        public MetaServiceSoapClient(string endpointConfigurationName) :
            base(endpointConfigurationName)
        {
        }

        public MetaServiceSoapClient(string endpointConfigurationName, string remoteAddress) :
            base(endpointConfigurationName, remoteAddress)
        {
        }

        public MetaServiceSoapClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
            base(endpointConfigurationName, remoteAddress)
        {
        }

        public MetaServiceSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
            base(binding, remoteAddress)
        {
        }

        public System.Net.CookieContainer CookieContainer
        {
            get
            {
                System.ServiceModel.Channels.IHttpCookieContainerManager httpCookieContainerManager = this.InnerChannel.GetProperty<System.ServiceModel.Channels.IHttpCookieContainerManager>();
                if ((httpCookieContainerManager != null))
                {
                    return httpCookieContainerManager.CookieContainer;
                }
                else
                {
                    return null;
                }
            }
            set
            {
                System.ServiceModel.Channels.IHttpCookieContainerManager httpCookieContainerManager = this.InnerChannel.GetProperty<System.ServiceModel.Channels.IHttpCookieContainerManager>();
                if ((httpCookieContainerManager != null))
                {
                    httpCookieContainerManager.CookieContainer = value;
                }
                else
                {
                    throw new System.InvalidOperationException("Unable to set the CookieContainer. Please make sure the binding contains an HttpC" +
                            "ookieContainerBindingElement.");
                }
            }
        }

        public event System.EventHandler<GetAppItemsCompletedEventArgs> GetAppItemsCompleted;

        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> SetAppItemCompleted;

        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> OpenCompleted;

        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> CloseCompleted;

        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.IAsyncResult Galaktika.BI.Silverlight.Services.MetaService.MetaServiceSoap.BeginGetAppItems(Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsRequest request, System.AsyncCallback callback, object asyncState)
        {
            return base.Channel.BeginGetAppItems(request, callback, asyncState);
        }

        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private System.IAsyncResult BeginGetAppItems(System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> cachedItems, System.AsyncCallback callback, object asyncState)
        {
            Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsRequest inValue = new Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsRequest();
            inValue.Body = new Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsRequestBody();
            inValue.Body.cachedItems = cachedItems;
            return ((Galaktika.BI.Silverlight.Services.MetaService.MetaServiceSoap)(this)).BeginGetAppItems(inValue, callback, asyncState);
        }

        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsResponse Galaktika.BI.Silverlight.Services.MetaService.MetaServiceSoap.EndGetAppItems(System.IAsyncResult result)
        {
            return base.Channel.EndGetAppItems(result);
        }

        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> EndGetAppItems(System.IAsyncResult result)
        {
            Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsResponse retVal = ((Galaktika.BI.Silverlight.Services.MetaService.MetaServiceSoap)(this)).EndGetAppItems(result);
            return retVal.Body.GetAppItemsResult;
        }

        private System.IAsyncResult OnBeginGetAppItems(object[] inValues, System.AsyncCallback callback, object asyncState)
        {
            System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> cachedItems = ((System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor>)(inValues[0]));
            return this.BeginGetAppItems(cachedItems, callback, asyncState);
        }

        private object[] OnEndGetAppItems(System.IAsyncResult result)
        {
            System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> retVal = this.EndGetAppItems(result);
            return new object[] {
                    retVal};
        }

        private void OnGetAppItemsCompleted(object state)
        {
            if ((this.GetAppItemsCompleted != null))
            {
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
                this.GetAppItemsCompleted(this, new GetAppItemsCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
            }
        }

        public void GetAppItemsAsync(System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> cachedItems)
        {
            this.GetAppItemsAsync(cachedItems, null);
        }

        public void GetAppItemsAsync(System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> cachedItems, object userState)
        {
            if ((this.onBeginGetAppItemsDelegate == null))
            {
                this.onBeginGetAppItemsDelegate = new BeginOperationDelegate(this.OnBeginGetAppItems);
            }
            if ((this.onEndGetAppItemsDelegate == null))
            {
                this.onEndGetAppItemsDelegate = new EndOperationDelegate(this.OnEndGetAppItems);
            }
            if ((this.onGetAppItemsCompletedDelegate == null))
            {
                this.onGetAppItemsCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetAppItemsCompleted);
            }
            base.InvokeAsync(this.onBeginGetAppItemsDelegate, new object[] {
                        cachedItems}, this.onEndGetAppItemsDelegate, this.onGetAppItemsCompletedDelegate, userState);
        }

        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.IAsyncResult Galaktika.BI.Silverlight.Services.MetaService.MetaServiceSoap.BeginSetAppItem(Galaktika.BI.Silverlight.Services.MetaService.SetAppItemRequest request, System.AsyncCallback callback, object asyncState)
        {
            return base.Channel.BeginSetAppItem(request, callback, asyncState);
        }

        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private System.IAsyncResult BeginSetAppItem(System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> items, System.AsyncCallback callback, object asyncState)
        {
            Galaktika.BI.Silverlight.Services.MetaService.SetAppItemRequest inValue = new Galaktika.BI.Silverlight.Services.MetaService.SetAppItemRequest();
            inValue.Body = new Galaktika.BI.Silverlight.Services.MetaService.SetAppItemRequestBody();
            inValue.Body.items = items;
            return ((Galaktika.BI.Silverlight.Services.MetaService.MetaServiceSoap)(this)).BeginSetAppItem(inValue, callback, asyncState);
        }

        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        Galaktika.BI.Silverlight.Services.MetaService.SetAppItemResponse Galaktika.BI.Silverlight.Services.MetaService.MetaServiceSoap.EndSetAppItem(System.IAsyncResult result)
        {
            return base.Channel.EndSetAppItem(result);
        }

        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private void EndSetAppItem(System.IAsyncResult result)
        {
            Galaktika.BI.Silverlight.Services.MetaService.SetAppItemResponse retVal = ((Galaktika.BI.Silverlight.Services.MetaService.MetaServiceSoap)(this)).EndSetAppItem(result);
        }

        private System.IAsyncResult OnBeginSetAppItem(object[] inValues, System.AsyncCallback callback, object asyncState)
        {
            System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> items = ((System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor>)(inValues[0]));
            return this.BeginSetAppItem(items, callback, asyncState);
        }

        private object[] OnEndSetAppItem(System.IAsyncResult result)
        {
            this.EndSetAppItem(result);
            return null;
        }

        private void OnSetAppItemCompleted(object state)
        {
            if ((this.SetAppItemCompleted != null))
            {
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
                this.SetAppItemCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
            }
        }

        public void SetAppItemAsync(System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> items)
        {
            this.SetAppItemAsync(items, null);
        }

        public void SetAppItemAsync(System.Collections.Generic.List<Galaktika.BI.Silverlight.Services.AppItemDescriptor> items, object userState)
        {
            if ((this.onBeginSetAppItemDelegate == null))
            {
                this.onBeginSetAppItemDelegate = new BeginOperationDelegate(this.OnBeginSetAppItem);
            }
            if ((this.onEndSetAppItemDelegate == null))
            {
                this.onEndSetAppItemDelegate = new EndOperationDelegate(this.OnEndSetAppItem);
            }
            if ((this.onSetAppItemCompletedDelegate == null))
            {
                this.onSetAppItemCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSetAppItemCompleted);
            }
            base.InvokeAsync(this.onBeginSetAppItemDelegate, new object[] {
                        items}, this.onEndSetAppItemDelegate, this.onSetAppItemCompletedDelegate, userState);
        }

        private System.IAsyncResult OnBeginOpen(object[] inValues, System.AsyncCallback callback, object asyncState)
        {
            return ((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(callback, asyncState);
        }

        private object[] OnEndOpen(System.IAsyncResult result)
        {
            ((System.ServiceModel.ICommunicationObject)(this)).EndOpen(result);
            return null;
        }

        private void OnOpenCompleted(object state)
        {
            if ((this.OpenCompleted != null))
            {
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
                this.OpenCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
            }
        }

        public void OpenAsync()
        {
            this.OpenAsync(null);
        }

        public void OpenAsync(object userState)
        {
            if ((this.onBeginOpenDelegate == null))
            {
                this.onBeginOpenDelegate = new BeginOperationDelegate(this.OnBeginOpen);
            }
            if ((this.onEndOpenDelegate == null))
            {
                this.onEndOpenDelegate = new EndOperationDelegate(this.OnEndOpen);
            }
            if ((this.onOpenCompletedDelegate == null))
            {
                this.onOpenCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnOpenCompleted);
            }
            base.InvokeAsync(this.onBeginOpenDelegate, null, this.onEndOpenDelegate, this.onOpenCompletedDelegate, userState);
        }

        private System.IAsyncResult OnBeginClose(object[] inValues, System.AsyncCallback callback, object asyncState)
        {
            return ((System.ServiceModel.ICommunicationObject)(this)).BeginClose(callback, asyncState);
        }

        private object[] OnEndClose(System.IAsyncResult result)
        {
            ((System.ServiceModel.ICommunicationObject)(this)).EndClose(result);
            return null;
        }

        private void OnCloseCompleted(object state)
        {
            if ((this.CloseCompleted != null))
            {
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
                this.CloseCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
            }
        }

        public void CloseAsync()
        {
            this.CloseAsync(null);
        }

        public void CloseAsync(object userState)
        {
            if ((this.onBeginCloseDelegate == null))
            {
                this.onBeginCloseDelegate = new BeginOperationDelegate(this.OnBeginClose);
            }
            if ((this.onEndCloseDelegate == null))
            {
                this.onEndCloseDelegate = new EndOperationDelegate(this.OnEndClose);
            }
            if ((this.onCloseCompletedDelegate == null))
            {
                this.onCloseCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnCloseCompleted);
            }
            base.InvokeAsync(this.onBeginCloseDelegate, null, this.onEndCloseDelegate, this.onCloseCompletedDelegate, userState);
        }

        protected override Galaktika.BI.Silverlight.Services.MetaService.MetaServiceSoap CreateChannel()
        {
            return new MetaServiceSoapClientChannel(this);
        }

        private class MetaServiceSoapClientChannel : ChannelBase<Galaktika.BI.Silverlight.Services.MetaService.MetaServiceSoap>, Galaktika.BI.Silverlight.Services.MetaService.MetaServiceSoap
        {

            public MetaServiceSoapClientChannel(System.ServiceModel.ClientBase<Galaktika.BI.Silverlight.Services.MetaService.MetaServiceSoap> client) :
                base(client)
            {
            }

            public System.IAsyncResult BeginGetAppItems(Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsRequest request, System.AsyncCallback callback, object asyncState)
            {
                object[] _args = new object[1];
                _args[0] = request;
                System.IAsyncResult _result = base.BeginInvoke("GetAppItems", _args, callback, asyncState);
                return _result;
            }

            public Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsResponse EndGetAppItems(System.IAsyncResult result)
            {
                object[] _args = new object[0];
                Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsResponse _result = ((Galaktika.BI.Silverlight.Services.MetaService.GetAppItemsResponse)(base.EndInvoke("GetAppItems", _args, result)));
                return _result;
            }

            public System.IAsyncResult BeginSetAppItem(Galaktika.BI.Silverlight.Services.MetaService.SetAppItemRequest request, System.AsyncCallback callback, object asyncState)
            {
                object[] _args = new object[1];
                _args[0] = request;
                System.IAsyncResult _result = base.BeginInvoke("SetAppItem", _args, callback, asyncState);
                return _result;
            }

            public Galaktika.BI.Silverlight.Services.MetaService.SetAppItemResponse EndSetAppItem(System.IAsyncResult result)
            {
                object[] _args = new object[0];
                Galaktika.BI.Silverlight.Services.MetaService.SetAppItemResponse _result = ((Galaktika.BI.Silverlight.Services.MetaService.SetAppItemResponse)(base.EndInvoke("SetAppItem", _args, result)));
                return _result;
            }
        }
    }
}
